package com.swp.oa.util;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class SpringHelper {

	public static Object getService(String serviceId){
		ApplicationContext ac  = new ClassPathXmlApplicationContext("spring-mybatis.xml");
		return ac.getBean(serviceId);
	}
}
